<?php
/**
 * Created by liuniukeji.com
 * User: 后台登录控制器
 * Date: 16-3-31
 * @author:zhaojiping QQ: 17620286
 */

namespace Home\Model;
use Think\Model;

class OrderDetailModel extends Model{
    /**
     * 添加订单详情
     * @param
     * @return
     */
    public function set_order_detail($money,$user,$remark,$old,$new,$status,$pay_orderid,$paytime,$type,$describe,$prefix,$out_trade_no){
        $order=array(
            'money'=>$money,
            'user'=>$user,
            'remark'=>$remark,
            'status'=>$status,
            'orderid'=>$out_trade_no,
            'old'=>$old,
            'new'=>$new,
            'pay_orderid'=>$pay_orderid,
            'paytime'=>$paytime,
            'type'=>$type,
            'describe'=>$describe,
            'createtime'=>date('Y-m-d H:i:s'),
            'prefix'=>$prefix,
        );
        if($this->add($order)){
            return true;
        }else{
            return false;
        }
        
    }
}
